<?php namespace App\Models;

class Project extends \Eloquent
{
	protected $table = "projects";
	protected $softDelete = true;

	public function images()
	{
		return $this->belongsToMany("App\Models\ProjectImage", "project_project_images", "projectid", "imageid")->withTimestamps();
	}
	
	public function files()
	{
		return $this->belongsToMany("App\Models\ProjectFile", "project_project_files", "projectid", "fileid")->withTimestamps();
	}
}